import { UPDATE_CUR_CITY } from "../../utils/const";

const default_city = {
  label: "山西",
};

export const getCurCity = (pre = default_city, action) => {
  const { type, data } = action;
  switch (type) {
    case UPDATE_CUR_CITY:
      return data;
    default:
      return default_city;
  }
};
